from page.base_page import BasePage
from appium.webdriver.common.appiumby import AppiumBy

from page.search_member_page import SearchPage


class ContactsPage(BasePage):
    def __init__(self, driver):
        super().__init__(driver)

    def to_search(self) -> SearchPage:
        self.find(AppiumBy.ID, "ixj").click()
        return SearchPage(self.driver)
